package com.pureut.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pureut.storage.domain.Warehouse;
import com.pureut.storage.dto.WarehouseDto;
import com.pureut.storage.vo.WarehouseVo;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 * 仓库管理mapper
 * Author:C
 * Date:2022/12/13 17:26
 * @DESC
 */
@Mapper
public interface WarehouseMapper extends BaseMapperPlus<WarehouseMapper, Warehouse, Warehouse> {

    /**
     * 获取仓库列表
     */
    List<WarehouseDto> getWarehouse(WarehouseVo warehouseVo);

    /**
     * 根据名称查询仓库信息
     * @param id
     * @return
     */
    WarehouseDto getWarehouseCode(String id);

    /**
     * 根据仓库编码查询仓库建模信息
     * @param warehouseCode
     * @return
     */
    WarehouseDto selectWarehouseInfo(String warehouseCode);
}
